 <?php
 	if(isset($_POST['submit1']))
 	{
		require_once('scripts/recaptchalib.php');
		$privatekey = "6LdBW80SAAAAAP_ghcXk754uMm2pbM_fX88eZj-J";
		$resp = recaptcha_check_answer ($privatekey,
		                            $_SERVER["REMOTE_ADDR"],
		                            $_POST["recaptcha_challenge_field"],
		                            $_POST["recaptcha_response_field"]);
		
		if (!$resp->is_valid) {
		// What happens when the CAPTCHA was entered incorrectly
		die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
		     "(reCAPTCHA said: " . $resp->error . ")");
		     
		echo "FAILED!";
		} else {
		// Your code here to handle a successful verification
		echo "CORRECT!";
		}
	 }
  ?>
 
 <html>
    <body> <!-- the body tag is required or the CAPTCHA may not show on some browsers -->
      <!-- your HTML content -->

      <form method="post" action="recapcha.php">
        <?php
          require_once('scripts/recaptchalib.php');
          $publickey = "6LdBW80SAAAAAJQi5GAsQq9k-_FXg0OhszU_Rlpb"; // you got this from the signup page
          echo recaptcha_get_html($publickey);
        ?>
        <input type="submit" name="submit1" value="Submit">
      </form>

      <!-- more of your HTML content -->
    </body>
  </html>